package fem2.element;

import fem2.AbstractPatchTestCrackElement;
import fem2.Element;
import fem2.MaterialModel;
import fem2.MeshPart;
import fem2.element.crack_sda.SOSConstantJumpCSTElement;
import fem2.material.cohesive_law.CohesiveLaw;
import fem2.material.cohesive_law.Mode1SanchoExponentialCohesiveLaw;

public class PatchTestSOSConstantJumpCSTElementUsingSanchoCohesiveLaw extends
		AbstractPatchTestCrackElement {

	@Override
	public CohesiveLaw createCohesiveLaw() {
		double H = -1;
		double ft = 0.91;
		double Gf = -(ft * ft) / (2 * H);
		return new Mode1SanchoExponentialCohesiveLaw(Gf, ft);
	}

	@Override
	public Element createElement(MeshPart mp, MaterialModel mm, CohesiveLaw cl) {
		Element e = new SOSConstantJumpCSTElement(mp, mm, cl);
		// e.setEchoLevel(EchoLevelType.AUX3);
		return e;
	}

	@Override
	public void testSolve2() {
	}

}
